package vip.george.bean.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import vip.george.bean.animal.Dog;
import vip.george.bean.register.MyRegistryPostProcessor;
import vip.george.bean.service.BookService;
import vip.george.bean.service.impl.BookServiceImpl1;
import vip.george.bean.service.impl.BookServiceImpl3;


@Import({MyRegistryPostProcessor.class, BookServiceImpl3.class})
public class AppConfig {



    @Bean("book")
    public BookService bookService(){
        return new BookServiceImpl1();
    }


    @Bean("yello-dog")
    public Dog dog(){
        return new Dog();
    }



}
